package xml;


import org.jdom.Document;
import org.jdom.input.SAXBuilder;
import org.jdom.output.XMLOutputter;

import utils.AppProperties;

import java.io.FileInputStream;
import java.io.InputStream;

/**
*  DocumentReader
*
* @author  enrique.barrios
*/
public class ReaderXML {
     XMLOutputter outputter = new XMLOutputter();

   /** Creates new ReaderXML */
   public ReaderXML() {


   }




    public static String  readXMLM1() throws Exception{

    	//String rutaXMLGrav = (AppProperties.getProperty("aplicacion", "FILE_XML_GRAVAMENES"));	 
		SAXBuilder builder = new SAXBuilder ();
		Document doc = builder.build (new FileInputStream ("SGC/web/file/F4311Z1.xml"));		                                                
		XMLOutputter outputter = new XMLOutputter();
		String salida = outputter.outputString(doc);

		return salida;


   

      }


       

  
}

